/*
 * Copyright (c) 2012-2014, EpicSaaS Yuan Xin technology Co., Ltd.
 * 
 * All rights reserved.
 */
/*
 * 
 * Support: http://www.huqiuhsc.com
 * License: http://www.huqiuhsc.com/license
 */
package com.epicsaas.app.ksdapp.android.bean;

import java.util.List;

/**
 * Entity - 商品分类
 * 
 * @author www.flycent.com.cn
 * @version 3.0
 */
public class ProductCategory extends BaseEntity {

    /** APP 布局 */
    public enum AppLayout {
        LIST, GRID
    }

    /** 名称 */
    private String name;

    /** 层级 */
    private Integer grade;

    /** 下级分类 */
    private List<ProductCategory> children;

    private AppLayout appLayout; // LIST/GRID

    private String appImage;

    private String webImage;

    public String getName() {
        return name;
    }

    public Integer getGrade() {
        return grade;
    }

    public List<ProductCategory> getChildren() {
        return children;
    }

    public String getAppImage() {
        return appImage;
    }

    public String getWebImage() {
        return webImage;
    }

    public AppLayout getAppLayout() {
        return appLayout;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    public void setChildren(List<ProductCategory> children) {
        this.children = children;
    }

    public void setAppLayout(AppLayout appLayout) {
        this.appLayout = appLayout;
    }

    public void setAppImage(String appImage) {
        this.appImage = appImage;
    }

    public void setWebImage(String webImage) {
        this.webImage = webImage;
    }

    // 勿改
    @Override
    public String toString() {
        return name;
    }
}
